GrapeCity.Windows.SpreadSheet.Data Namespace > Workbook Class > SavePdf Method : SavePdf(String,PdfExportSettings,Int32[]) Method |
'Declaration Public Overloads Sub SavePdf( _ ByVal fileName As System.String, _ ByVal settings As PdfExportSettings, _ ByVal ParamArray sheetIndexs() As System.Integer _ )
'Usage Dim instance As Workbook Dim fileName As System.String Dim settings As PdfExportSettings Dim sheetIndexs() As System.Integer instance.SavePdf(fileName, settings, sheetIndexs)
public void SavePdf( System.string fileName, PdfExportSettings settings, params System.int[] sheetIndexs )
GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings test; test = new GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings(); test.Title = "Print PDF"; test.Author = "GrapeCity, Inc."; test.DisplayDocTitle = true; test.FitWindow = true; gcSpreadSheet1.SavePDF("c:\\zipfile\\test.pdf", test, 0); //gcSpreadSheet1.SavePDF("c:\\zipfile\\test.pdf", 0);
Dim test as New GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings test = new GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings() test.Title = "Print PDF" test.Author = "GrapeCity, Inc." test.DisplayDocTitle = True test.FitWindow = True GcSpreadSheet1.SavePDF("c:\zipfile\test.pdf", test, 0) 'GcSpreadSheet1.SavePDF("c:\zipfile\test.pdf", 0)
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)